import ajax from '@/utils/ajax';

export default {
    // 优惠审批拒绝
    discountReviewRejected(data) {
        return ajax({
            url: '/discount/discountReviewRejected',
            method: 'post',
            data
        })
    },
    // 优惠审批通过
    discountReviewPassed(data) {
        return ajax({
            url: '/discount/discountReviewPassed',
            method: 'post',
            data
        })
    },
    // 添加优惠审批
    addDiscount(data) {
        return ajax({
            url: '/discount/addDiscount',
            method: 'post',
            data
        })
    },
    // 导出优惠审批
    exportDiscountApprovalExcel(data) {
        return ajax({
            url: '/discount/exportDiscountApprovalExcel',
            method: 'get',
            data
        })
    },
    // 获取优惠审批详情
    discountApprovalDetails(data) {
        return ajax({
            url: '/discount/discountApprovalDetails',
            method: 'get',
            data
        })
    },
    // 获取优惠审批列表
    discountApprovalList(data) {
        return ajax({
            url: '/discount/discountApprovalList',
            method: 'get',
            data
        })
    },
    // 优惠审批作废
    discountInvalidation(data) {
        return ajax({
            url: '/discount/discountInvalidation',
            method: 'post',
            data
        })
    },
}